removed #include <unistd.h>
removed min/max macros
updated SHL/SHR to use more parenthesis
compile with packed structs
remove all C99 declarations